/**
 *@功能说明 :
 * 2015 2015-6-3 上午11:08:47
 * code by zhugefubin
 */
package xyz.litecoder.demos;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffXfermode;
import android.graphics.Bitmap.CompressFormat;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.widget.ImageView;
import android.widget.ScrollView;

/**
 * @author zhugefubin
 * 
 */
public class ZScrollView extends ScrollView {


	@SuppressLint("NewApi")
	public ZScrollView(Context context, AttributeSet attrs,
			int defStyleAttr, int defStyleRes) {
		super(context, attrs, defStyleAttr, defStyleRes);
	}

	public ZScrollView(Context context, AttributeSet attrs,
			int defStyleAttr) {
		super(context, attrs, defStyleAttr);
	}

	public ZScrollView(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	public ZScrollView(Context context) {
		super(context);
	}

	/**
	 * @see android.widget.ScrollView#onInterceptTouchEvent(android.view.MotionEvent)
	 * @param ev
	 * @return
	 */
	@Override
	public boolean onInterceptTouchEvent(MotionEvent ev) {
		return ((ZImageView) getChildAt(0)).isScollMode();
	}
}
